<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>职员管理页面</title>
		<meta name="renderer" content="webkit">
  		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<!-- 项目基准路径 -->
		<base href="/bestinc/"/>
		<!-- 引入layui的css -->
		<link rel="stylesheet" href="static/layui/css/layui.css"  media="all">
		<!-- 引入自定义工具css -->
	<!-- 	<link rel="stylesheet" href="static/css/base/staff/staff.css"  media="all"> -->
		<link rel="stylesheet" href="static/css/util.css"  media="all">
		<!-- 引入jqeury -->
		<!-- <script src="js/util/jquery-3.1.1.min.js" type="text/javascript" charset="utf-8"></script> -->
		<!-- 引入layui的js -->
		<script src="static/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<!-- 引入资源js -->
		<script src="static/js/base/staff/Staff.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
	<div id="content">
		<!-- 头部搜索框 -->
		<div id="search-header">
		  <form class="layui-form">
		      <div class="layui-form-item">
		        <div class="layui-inline">
		          <label class="layui-form-label">职员编号</label>
		          <div class="layui-input-inline">
		            <input id="staffnumberth" type="text" name="staffNumber" placeholder="请输入" autocomplete="off" class="layui-input">
		          </div>
		        </div>
		        <div class="layui-inline">
		          <label class="layui-form-label">职员名</label>
		          <div class="layui-input-inline">
		            <input id="staffNameth" type="text" name="staffName" placeholder="请输入" autocomplete="off" class="layui-input">
		          </div>
		        </div>
		        <div class="layui-inline">
		          <label class="layui-form-label">手机</label>
		          <div class="layui-input-inline">
		            <input id="phoneth" type="text" name="staffPhone" placeholder="请输入" autocomplete="off" class="layui-input">
		          </div>
		        </div>
		          <div class="layui-inline">
		          <label class="layui-form-label">是否可用</label>
		          <div class="layui-input-inline">
		            <select name="useable" id="useableth">
		              <option value=""></option>
		              <option value="N">否</option>
		              <option value="Y">是</option>
		            </select>
		          </div>
		          </div> 
		        <div class="layui-inline">
		          <label class="layui-form-label"></label>
		           <div class="layui-input-inline">
		            <button class="layui-btn" lay-submit="" lay-filter="resourceSearchBtn">
		            	<i class="layui-icon layui-icon-search"></i>
		            	查询
		            </button>
		            <button class="layui-btn"  type="reset">
		            	<i class="layui-icon layui-icon-refresh"></i>
		            	重置
		            </button>
		          </div>
		        </div>
		      </div>
	      </form>
	    </div>
		
		<!-- 数据表格 -->
		<div id="dataTable">
		<table class="layui-hide" id="resourceTable" lay-filter="resourceTableEvent">
		</table>
		</div>
		
		<!-- 添加模态框 -->
		<div id="addResourceModal" class="definedModal">
			<!-- 这里手动加表单样式 -->
			<form id="addResourceForm" lay-filter="addResourceForm" class="layui-form" action="">
			  <div class="layui-form-item">
			    <label class="layui-form-label">职员编号</label>
			    <div class="layui-input-block">
			      <input type="text" name=staffNumber lay-verify="required|serial" placeholder="请输入职工编号" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">职员名</label>
			    <div class="layui-input-block">
			      <input type="text" name="staffName" lay-verify="required|name"  placeholder="请输入职工名" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">手机号</label>
			    <div class="layui-input-block">
			      <input type="text" name="staffPhone" lay-verify="required|phone"  placeholder="请输入手机号" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">查台密码</label>
			    <div class="layui-input-block">
			      <input type="password" Id="staffPassword" name="staffPassword" lay-verify="required"  placeholder="请设置密码" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">是否使用PDA</label>
			    <div class="layui-input-block">
			     <select name="pdaSgin" >
		              <option value="N">否</option>
		              <option value="Y">是</option>
		            </select>
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">职工类型</label>
			    <div class="layui-input-block">
			      <select name="subsetId" id="subsetNameht">
		              <option value=""></option>
		            </select>
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">取派时间</label>
			    <div class="layui-input-block">
			      <select name="timeId" lay-filter="aihao" id="teStTeId">
			        <option value="0"></option>
			      </select>
			    </div>
			  </div>
			    <div class="layui-form-item">
			    <label class="layui-form-label">取派标准</label>
			    <div class="layui-input-block">
			      <select name="standardId" lay-filter="aihao" id="sdSddId">
			        <option value="0"></option>
			      </select>
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">车牌号</label>
			    <div class="layui-input-block">
			      <select name="busId" id="busNumberht">
		              <option value=""></option>
		            </select>
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">组织名</label>
			    <div class="layui-input-block">
			      <select name="orgId" id="orgNameht">
		              <option value=""></option>
		            </select>
			    </div>
			  </div>
			  <div class="layui-form-item layui-form-text">
			    <label class="layui-form-label">描述</label>
			    <div class="layui-input-block">
			      <textarea name="description" placeholder="请输入内容" class="layui-textarea" lay-verify="required|descriptor"></textarea>
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <div class="layui-input-block">
			      <button type="submit" class="layui-btn" lay-submit="" lay-filter="addResourceBtn">立即提交</button>
			      <button type="button" class="layui-btn modalClose">关闭</button>
			    </div>
			  </div>
			</form>
		</div>
		
		<!-- 修改模态框 -->
		<div id="updateResourceModal" class="definedModal">
			<!-- 这里手动加表单样式 -->
			<form id="updateResourceForm" lay-filter="updateResourceForm" class="layui-form" action="">
			<input type="hidden" name="staffId" >
			  <div class="layui-form-item">
			    <label class="layui-form-label">职工编号</label>
			    <div class="layui-input-block">
			      <input type="text" name="staffNumber" lay-verify="required|serial|number" placeholder="请输入职工编号" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">职工名字</label>
			    <div class="layui-input-block">
			      <input type="text" name="staffName" lay-verify="required|name|name1|English"  placeholder="请输入职工名" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">手机号</label>
			    <div class="layui-input-block">
			      <input type="text" name="staffPhone" lay-verify="required|phone"  placeholder="请输入手机号" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">查台密码</label>
			    <div class="layui-input-block">
			      <input type="text" name="staffPassword" lay-verify="require"  placeholder="请设置密码" autocomplete="off" class="layui-input">
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">是否使用PDA</label>
			    <div class="layui-input-block">
			      <select name="pdaSgin" >
		              <option value=""></option>
		              <option value="N">否</option>
		              <option value="Y">是</option>
		            </select>
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">职员类型</label>
			    <div class="layui-input-block">
			      <select name="subsetId" lay-filter="aihao" id="subsetIdh">
			      </select>
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">取派标准</label>
			    <div class="layui-input-block">
			      <select name="standardId" lay-filter="aihao" id="sdSddIdht">
			      </select>
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <label class="layui-form-label">取派时间</label>
			    <div class="layui-input-block">
			      <select name="timeId" lay-filter="aihao" id="teStTeIdht">
			        <option value=""></option>
			      </select>
			    </div>
			  </div>
			   <div class="layui-form-item">
			    <label class="layui-form-label">车牌号</label>
			    <div class="layui-input-block">
			      <select name="busId" lay-filter="aihao" id="busIdh">
			        <option value=""></option>
			      </select>
			    </div>
			  </div>
			   <div class="layui-form-item">
			    <label class="layui-form-label">组织名</label>
			    <div class="layui-input-block">
			      <select name="orgId" lay-filter="aihao" id="orgIdh">
			        <option value=""></option>
			      </select>
			    </div>
			  </div>
			  <div class="layui-form-item layui-form-text">
			    <label class="layui-form-label">描述</label>
			    <div class="layui-input-block">
			      <textarea name="description" placeholder="请输入内容" class="layui-textarea" lay-verify="required|descriptor"></textarea>
			    </div>
			  </div>
			  <div class="layui-form-item">
			    <div class="layui-input-block">
			      <button type="submit" class="layui-btn" lay-submit="" lay-filter="updateResourceBtn">立即提交</button>
			      <button type="button" class="layui-btn modalClose">关闭</button>
			    </div>
			  </div>
			</form>
		</div>
		
	    <!-- 头部工具栏 -->
		<script type="text/html" id="resourceToolbar">
  			<div class="layui-btn-group">
 				<button lay-event="addResource" class="layui-btn layui-btn-primary layui-btn-sm"title="添加"><i class="layui-icon">&#xe654;</i>添加</button>
				<button lay-event="updateResource" class="layui-btn layui-btn-primary layui-btn-sm"title="修改"><i class="layui-icon">&#xe642</i>修改</button>
				<button lay-event="frozenRecord" class="layui-btn layui-btn-primary layui-btn-sm"title="禁用"><i class="layui-icon">&#xe702;</i>禁用</button>
				<button lay-event="restoreRecord" class="layui-btn layui-btn-primary layui-btn-sm"title="恢复"><i class="layui-icon">&#xe666;</i>恢复</button>
  			</div>
		</script>
		<!-- DPA状态-->
		<script type="text/html" id="checkboxTpl1">
    		<span lay-filter="DPA" {{d.pdaSgin=='Y'?'style="color:green;"':'style="color:red;"'}}>{{d.pdaSgin=='Y'?'可用':'不可用'}}</span>
		</script>
		
		<!-- 状态 -->
		<script type="text/html" id="checkboxTpl">
    		<input type="checkbox" lay-filter="useable" value="{{d.staffId}}" lay-skin="switch" lay-text="可用|禁用" {{d.useable=='Y'?'checked':''}}/>
		</script>
		
		<!-- 工具栏列 -->
		<script type="text/html" id="resourceBar">
  			<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
		</script>
		<!-- 状态    -->
		<script type="text/html" id="staffPassword11">
    		<input class="staffPassword111" type="password"  disabled="disablled" style="border:0px;cursor: pointer;background-color:#fff;" value="{{d.staffPassword}}"/>
        </script>
		</div>
	</body>
</html>
